import requests from "./requests";
// /api/user/passport/login，post，参数：phone password
export const reqUserLogin = (data) => {
  return requests.post("/user/passport/login", data);
};
//获取用户信息 【需要带着用户的token向服务器要用户信息】
// /api/user/passport/auth/getUserInfo
export const reqUserInfo = () => {
  return requests.get("/user/passport/auth/getUserInfo");
};
//退出登录
export const reqLogOut = () => {
  return requests.get("/user/passport/logout");
};
